package com.xxx.common;

import lombok.Data;

public enum ResultEnum {
    SUCCESS(200, "成功"),
    FAIL(10000, "失败"),
    USER_NOT_EXIST(201, "用户不存在");


    private Integer code;
    private String msg;


    ResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMsg() {
        return this.msg;
    }
}
